Integrand size = 18, antiderivative size = 501 \[ \int \frac {a+b \text {arccosh}(c x)}{d+e x^2} \, dx=\frac {(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}} \]
[Out]
Time = 0.52 (sec) , antiderivative size = 501, normalized size of antiderivative = 1.00, number of steps used = 18, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {5909, 5962, 5681, 2221, 2317, 2438} \[ \int \frac {a+b \text {arccosh}(c x)}{d+e x^2} \, dx=\frac {(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {c^2 (-d)-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {arccosh}(c x)) \log \left (\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {c^2 (-d)-e}}+1\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{\sqrt {c^2 (-d)-e}+c \sqrt {-d}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {arccosh}(c x)) \log \left (\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{\sqrt {c^2 (-d)-e}+c \sqrt {-d}}+1\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-d c^2-e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-d c^2-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{\sqrt {-d} c+\sqrt {-d c^2-e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{\sqrt {-d} c+\sqrt {-d c^2-e}}\right )}{2 \sqrt {-d} \sqrt {e}} \]
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 5681
Rule 5909
Rule 5962
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {\sqrt {-d} (a+b \text {arccosh}(c x))}{2 d \left (\sqrt {-d}-\sqrt {e} x\right )}+\frac {\sqrt {-d} (a+b \text {arccosh}(c x))}{2 d \left (\sqrt {-d}+\sqrt {e} x\right )}\right ) \, dx \\ & = -\frac {\int \frac {a+b \text {arccosh}(c x)}{\sqrt {-d}-\sqrt {e} x} \, dx}{2 \sqrt {-d}}-\frac {\int \frac {a+b \text {arccosh}(c x)}{\sqrt {-d}+\sqrt {e} x} \, dx}{2 \sqrt {-d}} \\ & = -\frac {\text {Subst}\left (\int \frac {(a+b x) \sinh (x)}{c \sqrt {-d}-\sqrt {e} \cosh (x)} \, dx,x,\text {arccosh}(c x)\right )}{2 \sqrt {-d}}-\frac {\text {Subst}\left (\int \frac {(a+b x) \sinh (x)}{c \sqrt {-d}+\sqrt {e} \cosh (x)} \, dx,x,\text {arccosh}(c x)\right )}{2 \sqrt {-d}} \\ & = -\frac {\text {Subst}\left (\int \frac {e^x (a+b x)}{c \sqrt {-d}-\sqrt {-c^2 d-e}-\sqrt {e} e^x} \, dx,x,\text {arccosh}(c x)\right )}{2 \sqrt {-d}}-\frac {\text {Subst}\left (\int \frac {e^x (a+b x)}{c \sqrt {-d}+\sqrt {-c^2 d-e}-\sqrt {e} e^x} \, dx,x,\text {arccosh}(c x)\right )}{2 \sqrt {-d}}-\frac {\text {Subst}\left (\int \frac {e^x (a+b x)}{c \sqrt {-d}-\sqrt {-c^2 d-e}+\sqrt {e} e^x} \, dx,x,\text {arccosh}(c x)\right )}{2 \sqrt {-d}}-\frac {\text {Subst}\left (\int \frac {e^x (a+b x)}{c \sqrt {-d}+\sqrt {-c^2 d-e}+\sqrt {e} e^x} \, dx,x,\text {arccosh}(c x)\right )}{2 \sqrt {-d}} \\ & = \frac {(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {e} e^x}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right ) \, dx,x,\text {arccosh}(c x)\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {e} e^x}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right ) \, dx,x,\text {arccosh}(c x)\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {e} e^x}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right ) \, dx,x,\text {arccosh}(c x)\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {e} e^x}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right ) \, dx,x,\text {arccosh}(c x)\right )}{2 \sqrt {-d} \sqrt {e}} \\ & = \frac {(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {e} x}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{x} \, dx,x,e^{\text {arccosh}(c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {e} x}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{x} \, dx,x,e^{\text {arccosh}(c x)}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {e} x}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{x} \, dx,x,e^{\text {arccosh}(c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {e} x}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{x} \, dx,x,e^{\text {arccosh}(c x)}\right )}{2 \sqrt {-d} \sqrt {e}} \\ & = \frac {(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}} \\ \end{align*}
Time = 0.25 (sec) , antiderivative size = 397, normalized size of antiderivative = 0.79 \[ \int \frac {a+b \text {arccosh}(c x)}{d+e x^2} \, dx=\frac {-\left ((a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )\right )+(a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{-c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )+(a+b \text {arccosh}(c x)) \log \left (1-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )-(a+b \text {arccosh}(c x)) \log \left (1+\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )+b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}-\sqrt {-c^2 d-e}}\right )-b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{-c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )-b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )+b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{\text {arccosh}(c x)}}{c \sqrt {-d}+\sqrt {-c^2 d-e}}\right )}{2 \sqrt {-d} \sqrt {e}} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 1.28 (sec) , antiderivative size = 232, normalized size of antiderivative = 0.46
method | result | size |
parts | \(\frac {a \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{\sqrt {d e}}+\frac {b c \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (4 c^{2} d +2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\textit {\_R1} \left (\operatorname {arccosh}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} e +2 c^{2} d +e}\right )}{2}-\frac {b c \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (4 c^{2} d +2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\operatorname {arccosh}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )}{\textit {\_R1} \left (\textit {\_R1}^{2} e +2 c^{2} d +e \right )}\right )}{2}\) | \(232\) |
derivativedivides | \(\frac {\frac {a c \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{\sqrt {d e}}+b \,c^{2} \left (\frac {\left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (4 c^{2} d +2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\textit {\_R1} \left (\operatorname {arccosh}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} e +2 c^{2} d +e}\right )}{2}-\frac {\left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (4 c^{2} d +2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\operatorname {arccosh}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )}{\textit {\_R1} \left (\textit {\_R1}^{2} e +2 c^{2} d +e \right )}\right )}{2}\right )}{c}\) | \(239\) |
default | \(\frac {\frac {a c \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{\sqrt {d e}}+b \,c^{2} \left (\frac {\left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (4 c^{2} d +2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\textit {\_R1} \left (\operatorname {arccosh}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} e +2 c^{2} d +e}\right )}{2}-\frac {\left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (4 c^{2} d +2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\operatorname {arccosh}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -c x -\sqrt {c x -1}\, \sqrt {c x +1}}{\textit {\_R1}}\right )}{\textit {\_R1} \left (\textit {\_R1}^{2} e +2 c^{2} d +e \right )}\right )}{2}\right )}{c}\) | \(239\) |
[In]
[Out]
\[ \int \frac {a+b \text {arccosh}(c x)}{d+e x^2} \, dx=\int { \frac {b \operatorname {arcosh}\left (c x\right ) + a}{e x^{2} + d} \,d x } \]
[In]
[Out]
\[ \int \frac {a+b \text {arccosh}(c x)}{d+e x^2} \, dx=\int \frac {a + b \operatorname {acosh}{\left (c x \right )}}{d + e x^{2}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {a+b \text {arccosh}(c x)}{d+e x^2} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {a+b \text {arccosh}(c x)}{d+e x^2} \, dx=\int { \frac {b \operatorname {arcosh}\left (c x\right ) + a}{e x^{2} + d} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \text {arccosh}(c x)}{d+e x^2} \, dx=\int \frac {a+b\,\mathrm {acosh}\left (c\,x\right )}{e\,x^2+d} \,d x \]
[In]
[Out]